<!--样品认证 -->
<template>
  <div class="base-info"
    ><a-table :pagination="false" :columns="columns" :data="props.data">
      <template #endTime="{ record }">
        {{ dayjs(record.endTime).format('YYYY-MM-DD HH:MM') }}
      </template>
    </a-table>
  </div>
</template>

<script lang="ts" setup>
  import { reactive } from 'vue';
  import dayjs from 'dayjs';

  const props = withDefaults(
    defineProps<{
      data: any;
    }>(),
    {}
  );

  const columns = [
    {
      title: '认证编号',
      dataIndex: 'number',
    },
    {
      title: '认证名称',
      dataIndex: 'authSetName',
    },
    {
      title: '认证时间',
      dataIndex: 'endTime',
      slotName: 'endTime',
    },
    {
      title: '认证人',
      dataIndex: 'headManName',
    },
  ];
</script>

<style scoped lang="less">
  .base-info {
    padding: 0 40px;
  }
</style>
